package com.snow.vpnclient.query;

import android.app.Activity;

import java.util.function.Consumer;

/**
 * @author liufq
 * @since 2022-11-19 12:24:17
 */
public class LoginQuery {

    private String id;

    private Activity activity;

    private String username;

    private String password;

    private String redirectUri;

    /**
     * 登录成功回调
     */
    private Consumer<String> loginConsumer;

    /**
     * 认证成功回调
     */
    private Consumer<String> authConsumer;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Activity getActivity() {
        return activity;
    }

    public void setActivity(Activity activity) {
        this.activity = activity;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }

    public Consumer<String> getLoginConsumer() {
        return loginConsumer;
    }

    public void setLoginConsumer(Consumer<String> loginConsumer) {
        this.loginConsumer = loginConsumer;
    }

    public Consumer<String> getAuthConsumer() {
        return authConsumer;
    }

    public void setAuthConsumer(Consumer<String> authConsumer) {
        this.authConsumer = authConsumer;
    }
}
